package com.ny.wlw;

public class Pet {
    private  String name;
    private  int age;
    public String color;
    public  void  setColor(String color){
        this.color= color;
    }
    public String getColor(){return color;}
    public void  play(){
        System.out.println("发出声音");
    }
    public void setAge(int age){this.age=age;}
    public void   setName(String name){this.name=name;}
    public String getName(){return name;}
    public int getAge(){return age;}
}
